home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
wdj0797.zip
/
ZOLMAN.ZIP
/
MYSPLI~1.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1996-11-18
|
3KB
|
112 lines
// MySplitterView.cpp : implementation of the CMySplitterView class
//
#include "stdafx.h"
#include "MySplitter.h"
#include "MySplitterDoc.h"
#include "MySplitterView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMySplitterView
IMPLEMENT_DYNCREATE(CMySplitterView, CFormView)
BEGIN_MESSAGE_MAP(CMySplitterView, CFormView)
//{{AFX_MSG_MAP(CMySplitterView)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
// Standard printing commands
ON_COMMAND(ID_FILE_PRINT, CFormView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_DIRECT, CFormView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_PREVIEW, CFormView::OnFilePrintPreview)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMySplitterView construction/destruction
CMySplitterView::CMySplitterView()
: CFormView(CMySplitterView::IDD)
{
//{{AFX_DATA_INIT(CMySplitterView)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
// TODO: add construction code here
}
CMySplitterView::~CMySplitterView()
{
}
void CMySplitterView::DoDataExchange(CDataExchange* pDX)
{
CFormView::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CMySplitterView)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BOOL CMySplitterView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CFormView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CMySplitterView printing
BOOL CMySplitterView::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CMySplitterView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CMySplitterView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
void CMySplitterView::OnPrint(CDC* pDC, CPrintInfo*)
{
// TODO: add code to print the controls
}
/////////////////////////////////////////////////////////////////////////////
// CMySplitterView diagnostics
#ifdef _DEBUG
void CMySplitterView::AssertValid() const
{
CFormView::AssertValid();
}
void CMySplitterView::Dump(CDumpContext& dc) const
{
CFormView::Dump(dc);
}
CMySplitterDoc* CMySplitterView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMySplitterDoc)));
return (CMySplitterDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMySplitterView message handlers